import {
    FRESHMILKDELIVERY_DETAIL,
    GETTOKEN, LIVEVIDEOLIST,
    QUERYENVIRONMENTDETAIL
} from './api'
import {METHOD, request} from '@/utils/request'



export async function queryEnvironmentDetail(params) {
    return request(QUERYENVIRONMENTDETAIL, METHOD.GET, params)
}

export async function getToken(params) {
    return request(GETTOKEN, METHOD.GET, params)
}

// /agri/api/common/liveVideo/queryList

export async function queryList(params) {
    return request(LIVEVIDEOLIST, METHOD.GET, params)
}


export async function freshMilkDelivery(id) {
    return request(FRESHMILKDELIVERY_DETAIL+ id, METHOD.GET)
}
export default {queryEnvironmentDetail, getToken, queryList, freshMilkDelivery}


